<?php

/**
 * 商城分类
 */

namespace app\shop\mobile;

class CategoryMobile extends \app\base\common\SiteCommon {


    /**
     * 首页
     */
    public function index() {
        $this->pageInfo['name'] = '商品分类';
        $list = target('shop/ShopClass')->loadList();
        $treeList = target('shop/ShopClass')->getTree($list);

        $this->assign('treeList', $treeList);
        $this->siteDisplay('shop_category');
    }

}